using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.Unity;
using System.Configuration;
using ShopPowerTemplate.Services;
using ShopPowerTemplate.IoC.Resources;
using ShopPowerTemplate.Entities;

namespace ShopPowerTemplate.IoC.Unity
{    
    sealed class IoCUnityContainer : IoCUnityContainerBase, IContainer 
    {        
        public IoCUnityContainer() : base()
        {
         
        }
        
        //Custom code here
        protected override void ConfigureRootContainer(IUnityContainer container)
        {
            base.ConfigureRootContainer(container);
            container.RegisterType<IAuthenticationService, AuthenticationService>(new TransientLifetimeManager());
        }

    }
}